﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrador/Site.Master" AutoEventWireup="true" CodeBehind="AgregarPlanos.aspx.cs" Inherits="Smart_House_System.Administrador.Formulario_web13" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2 id="myH2" style="margin-top:10%;">
        Agregar Planos
    </h2>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server">
    </asp:ToolkitScriptManager>
    <div class="accordionHeader">Agregar Planos</div>
        <asp:Panel ID="AccordionPane2" runat="server" CssClass="accordionContent">   
                <table style="width: 100%;">
                    <tr>
                        <td style="text-align:right; width:45%;">
                            CI
                        </td>
                        <td style="text-align:left; width:55%">
                            <asp:TextBox ID="txtCed2" runat="server" CssClass="myText" MaxLength="8"></asp:TextBox>
                            &nbsp;  
                            <asp:Button ID="btnBuscar2" runat="server" Text=""  CssClass="btnBuscarUsu" 
                                onclick="btnBuscar2_Click"/>
                            &nbsp;      
                            <asp:RequiredFieldValidator ID="rfvCedula2" runat="server" 
                                ControlToValidate="txtCed2" ErrorMessage="*Cedula - Campo obligatorio" ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
                             &nbsp;  
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"  ControlToValidate="txtCed2" ValidationExpression="([Z0-9]{8,30})$" 
                                ErrorMessage="El campo debe contener 8 números"  ForeColor="Red"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right; width:45%;">
                        Casa
                        </td>
                        <td  style="text-align:left; width:55%">
                        <select id="cmbCasas" class="styled-select" style="width:300px" runat="server"  >
                               </select>
                        </td>
                    </tr>
                    <tr>
                    <td style="text-align:right; width:45%;">
                      Foto  </td>
                    <td  style="text-align:left; width:55%">
                                <asp:FileUpload ID="flpFoto" runat="server" Enabled="false"/>
                                <asp:RequiredFieldValidator ID="rfvFoto" runat="server" Enabled="false"
                                    ControlToValidate="flpFoto" ErrorMessage="*Foto - Campo obligatorio" ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
                    </td>
                    </tr>
                    <tr>
                        <td style="text-align:right; width:45%;">
                            </td>
                        <td  style="text-align:left; width:55%">
                            <div ><asp:Image ID="Image1" runat="server" Height="250px"/>   &nbsp;</div>
                        </td>
                    </tr>
                </table>
            </asp:Panel>  

    <div style="width=100%; text-align:center;" >
        <asp:Button ID="btnAgregarPlani" runat="server" Text="Agregar Plano" 
            onclick="btnAgregarPlani_Click" CssClass="agregarPlano" Visible="false" />
    </div>
    <div style="width=100%; text-align:center;" >
        <asp:Label ID="lblMensaje" runat="server" Text="" Font-Size="Larger" ForeColor="Red"></asp:Label>
    </div>
    <div style="width=100%; text-align:center;" >
        <asp:ValidationSummary ID="ValidationSummary1" runat="server"  />
        <asp:Button ID="btnSiguiente" runat="server" Text="Aceptar"  
            CssClass="myButton" onclick="btnSiguiente_Click"/>  &nbsp;  &nbsp;
        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" CssClass="myButton" 
            onclick="btnCancelar_Click" CausesValidation="False" />
    </div>

    <script type="text/javascript">
    </script>

</asp:Content>
